package com.study.lk.exe2;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 * @author lk
 * @date 2021/4/16 0016 14:42
 * @description:
 */
public class Test {
    public static void main(String[] args) throws IOException {
        InputStream in = new UpperInputStream(
                new BufferedInputStream(
                        new FileInputStream("C:\\Users\\Administrator\\Desktop\\design-pattern\\src\\main\\java\\com\\study\\lk\\exe2\\1.txt")));

        int ch = 0;
        while ((ch = in.read()) != -1){
            System.out.print((char)ch);
        }
        in.close();
    }

}
